package com.java.tutorials.jdk7.paths;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by xuzhike on 2016/1/27.
 * http://www.java2s.com/Code/Java/JDK-7/GetfilenamefromPathobject.htm
 * Get file name from Path object
 */
public class GetfilenamefromPathobject {
    public static void main(String[] args) throws Exception{

        Path listing = Paths.get("/usr/bin/zip");

        System.out.println("File Name [" + listing.getFileName() + "]");
    }
}
